import base from '@/api/baseurl';
import request from '@/utils/request'

//  5.入参的查询/ts/findenterTheParameter  
//  6.入参的新增 /ts/addenterTheParameter 
//  7. 入参的修改 /ts/updateEnterTheParameter 
//  8.入参的删除/ts/delEnterTheParameter 
//   13.入参顺序的自增/ts/addOrder 

/**
 * 出参顺序的自增
 * @param {*} query 
 * @returns 
 */
 export function addOrder(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ts/addOrder',
    method: 'get',
    params: query
  })
}

/**
 * 出参-查询
 * @param {*} query 
 * @returns 
 */
 export function findenterTheParameterApi(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ts/findenterTheParameter',
    method: 'get',
    params: query
  })
}

/**
 * 出参-删除
 * @param {*} query 
 * @returns 
 */
 export function delEnterTheParameter(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ts/delEnterTheParameter',
    method: 'get',
    params: query
  })
}

/**
 * 出参-增加
 * @param {*} query 
 * @returns 
 */
export function addenterTheParameter(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ts/addenterTheParameter',
    method: 'post',
    data
  })
}

/**
 * 出参-修改
 * @param {*} query 
 * @returns 
 */
export function updateEnterTheParameter(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ts/updateEnterTheParameter',
    method: 'post',
    data
  })
}

/**
 * 入参类型-出参类型
 * @param {*} query 
 * @returns 
 */
 export function enterTheParameter(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ts/enterTheParameter',
    method: 'get',
    params: query
  })
}